package com.dkh.recommend.mapper;

import com.dkh.recommend.dto.AnalysisDTO;
import com.dkh.recommend.entity.TbMusic;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dkh
 * @since 2022-12-14
 */
@Repository
public interface TbMusicMapper extends BaseMapper<TbMusic> {
//    根据标签查找音乐
    public List<TbMusic> selectByLabelId(Long label_id);

//    根据音乐Ids获取音乐列表
    public List<TbMusic> slelectMusicByMusicIds(List<Long> musicIds);

//    点赞 +1
public Boolean addCountLike(Long music_id);
//    音乐收藏数量+1
    public Boolean addCountCollect(Long music_id);
//    评论 +1
public Boolean addCountComment(Long music_id);

//  热点音乐
    List<TbMusic> GetHotMusic();


}
